package com.ming.seatMonitoring.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ming.seatMonitoring.pojo.DO.RoomInfoDO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Date;
import java.util.List;

/**
 * @author 小明
 * @date 2021/10/21
 * @description
 */
@Mapper
@Repository
public interface RoomInfoMapper extends BaseMapper<RoomInfoDO> {
    boolean addRoomInfo(@RequestBody RoomInfoDO roomInfoDO);

    boolean deleteRoomInfo(@RequestParam int roomId,@RequestParam("deleteTime") Date deleteTime);

    Page<RoomInfoDO> selectRoomInfoByPage(Page<RoomInfoDO> page);

    RoomInfoDO searchRoom(int roomId);
}
